﻿@model EM.OA.Portal.Models.CompanyModels
@{
    Layout = "~/Views/Shared/_LayoutContent.cshtml";
}
<script type="text/javascript" src="~/Scripts/page/SystemSetting/Company.js"></script>
@*-------------------------- 实现公司列表的显示-------------------------*@
<div>
    @*list*@
    <table id="list" class="easyui-datagrid" toolbar="#toolbar">
    </table>
    <div id="toolbar">
        <a href="#" class="easyui-linkbutton" iconcls="icon-add" plain="true" onclick="add()">增加</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-edit" plain="true" onclick="edit()">修改</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-remove" plain="true" onclick="del()">删除</a>
    </div>

    @*Detail*@

    <div id="dlg" class="easyui-dialog" style="width: 550px; height: 420px; padding: 10px 20px"
        closed="true" buttons="#dlg-buttons" modal="true" resiz>
        <form id="fm" method="post">
            @Html.HiddenFor(m => m.CompanyID)
            <table>
                <tr>
                    <td>@Html.LabelFor(m => m.CompanyName)</td>
                    <td>@Html.TextBoxFor(m => m.CompanyName, new { @class = "easyui-validatebox", @required = "true" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Telephone)</td>
                    <td>@Html.TextBoxFor(m => m.Telephone, new { @class = "easyui-validatebox" })
                    </td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.FAX)</td>
                    <td>@Html.TextBoxFor(m => m.FAX, new { @class = "easyui-validatebox" })
                    </td>
                    
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.PostCode)</td>
                    <td>@Html.TextBoxFor(m => m.PostCode, new { @class = "easyui-numberbox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Address)</td>
                    <td>@Html.TextBoxFor(m => m.Address, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.WebSite)</td>
                    <td>@Html.TextBoxFor(m => m.WebSite, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.EMAIL)</td>
                    <td>@Html.TextBoxFor(m => m.EMAIL, new { @class = "easyui-validatebox" })</td>
                </tr>
                <tr>
                    <td>@Html.LabelFor(m => m.Content)</td>
                    <td>
                        @Html.TextAreaFor(m => m.Content, new { @style="width:100%",@rows="10", @class = "easyui-validatebox"})
                    </td>
                </tr>
            </table>

        </form>
    </div>
    <div id="dlg-buttons">
        <a href="#" class="easyui-linkbutton" iconcls="icon-ok" onclick="save()">Save</a>
        <a href="#" class="easyui-linkbutton" iconcls="icon-cancel" onclick="javascript:$('#dlg').dialog('close')">Cancel</a>
    </div>
</div>
